package com.cg.train;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication
// 如果需要明确指定扫描包，可以添加以下注解
@ComponentScan(basePackages = {"com.cg.train", "com.cg.system"})
@MapperScan({"com.cg.system.mapper", "com.cg.train.mapper"})
@EnableCaching // 启用缓存
public class TrainApplication {

    public static void main(String[] args) {
        SpringApplication.run(TrainApplication.class, args);
    }

}
